﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace KanbanApi.Models.Auth
{
    public class LoginResult
    {
        public bool Success { get; set; }

        public string Message { get; set; }

        public Data data { get; set; }
    }

    public class Data
    {
        public Permission[] permissions { get; set; }
        public Role[] roles { get; set; }
        public UserModel user { get; set; }
        public string token { get; set; }
        public DateTime expireAt { get; set; }
    }

    public class Permission
    {
        public string id { get; set; }
        public string[] operation { get; set; }
    }

    public class Role
    {
        public string id { get; set; }
        public string[] operation { get; set; }
    }
}